package GC;

import java.io.BufferedReader;

import javax.management.RuntimeErrorException;
import utils.*;

public class GC6 {
	static public void main(String[] args){
		Runtime rt = Runtime.getRuntime();
		Utils.println("free memory : "+rt.freeMemory());
		
		new Car();
		new Car();
		new Car();
		
		System.gc();
		Utils.println("free memory : "+rt.freeMemory());
	}
}

class Car{
	String name;
	void setName(String name){
		this.name = name;
	}
}
